#include "MutexLock.h"


MutexLock::MutexLock()
{
	pthread_mutex_init(&mutex_lock, NULL);
}

MutexLock::~MutexLock()
{
	pthread_mutex_destroy(&mutex_lock);
}

void MutexLock::lock() {
	pthread_mutex_lock(&mutex_lock);	
}


void MutexLock::unlock() {
	pthread_mutex_unlock(&mutex_lock);
}